package com.mql.springcloud.service;

import com.example.cloudapicommons.entity.CommonResult;
import com.example.cloudapicommons.entity.PaymentEntity;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping("/maQingLin/get/{id}")
    public CommonResult<PaymentEntity> getPaymentEntity(@PathVariable("id")Integer id);
}
